package biz.ezcom.design.pattern.interpreter;

/**
 * 音阶解释器
 */
public class ScaleExpression extends AbstractExpression {

	@Override
	public void execute(String key, double value) {
		//key = O
		String scale = "";
		if(value == 1d) {
			scale = "低音";
		}else if(value == 2d){
			scale = "中音";
		}else if(value == 3d){
			scale = "高音";
		}
		System.out.print(scale + " ");
	}


}
